<include file="Public:wapheader" />
		<div class="header1">
			<ul class="nav">
				<li>
					<a href="{:U('used/index')}">全部</a>
				</li>
				<li>
					<a href="javascript:void(0)">总价</a>
					<div class="list2">

						<ul>
							<li><a href="{:U('used/index')}">不限</a></li>
							<li><a href="{:U('used/index',array ('type'=>1))}">100万以下</a></li>
							<li><a href="{:U('used/index',array ('type'=>2))}">100-150万</a></li>
							<li><a href="{:U('used/index',array ('type'=>3))}">150-200万</a></li>
							<li><a href="{:U('used/index',array ('type'=>4))}">200-250万</a></li>
							<li><a href="{:U('used/index',array ('type'=>5))}">250-300万</a></li>
						</ul>
						<form nam="" action="{:U('used/index')}" method="post">
							<p>
								自定义价格：
								<input type="text" name="price_min" placeholder="最小" /> -
								<input type="text" name="price_max" placeholder="最大" />
								<input type="submit" name="" value="确定">
							</p>
						</form>
					</div>
				</li>
				<li>
					<a href="javascript:void(0)">房型</a>
					<div class="list2">
						<ul>
							<li><a href="{:U('used/index')}">不限</a></li>
							<li><a href="{:U('used/index',array ('type'=>7))}">1室</a></li>
							<li><a href="{:U('used/index',array ('type'=>8))}">2室</a></li>
							<li><a href="{:U('used/index',array ('type'=>9))}">3室</a></li>
							<li><a href="{:U('used/index',array ('type'=>10))}">4室</a></li>
							<li><a href="{:U('used/index',array ('type'=>11))}">5室</a></li>
							<li><a href="{:U('used/index',array ('type'=>12))}">5室以上</a></li>
						</ul>
					</div>
				</li>
				<li>
					<a href="javascript:void(0)">更多</a>
					<div class="list2">
						<ul>
							<li><a href="{:U('used/index')}">全部房源</a></li>
							<li><a href="{:U('used/index',array ('type'=>14))}">我的房源</a></li>
							<li><a href="{:U('used/index',array ('type'=>15))}">系统房源</a></li>
						</ul>
					</div>
				</li>
			</ul>
		</div>
		<div class="page9" id="nurse">
			<div class="mainner" id="wrapper">

				<div class="cont">
					<ul id="scroller">
						<volist name="houses" id="h">
							<li class="houses-li">
								<div class="list">
									<a href="{:U('used/detail')}&id={$h.id}" class="img"><img src="{$h.img}" /></a>
									<a href="{:U('used/detail')}&id={$h.id}" class="txt">
										<p class="name">{$h.title} <span>{$h.add_time}</span></p>
										<p class="size">总面积： &nbsp;&nbsp;&nbsp;&nbsp;<span>{$h.area}&nbsp;㎡</span></p>
										<p class="price">总价：<span>{$h.total_price}万</span></p>
									</a>
									<div class="clear"></div>
									<p class="link"><a href="#">{$h.tags}</a></p>
								</div>
							</li>
						</volist>
					</ul>
				</div>

			</div>
			
		</div>
		<input type="hidden" name="page" id="page" value="{$page}">
		<input type="hidden" name="map" id="map" value='{$map}'>


<script>
	var myScroll = new IScroll('#wrapper', {
		disableMouse: false,
		disablePointer: false,
		fadeScrollbars: false,
		click:  true,
		tap: true
	});
	// 上拉滑动事件
	myScroll.on("scrollEnd",function(){
		var y = myScroll.y, maxScrollY = myScroll.maxScrollY;
		if (y == maxScrollY){
			var page = $('#page').val ();
			var map = $('#map').val ();
			var url = "{:U('used/loading')}";
			var data = {page:page,map:map};
			$.post (url, data, function (respose){
				if (respose.state == 'ok') {
					$('#page').val(respose.page);
					$('#map').val(respose.map);
					var data = respose.data;
					var html = '';
					$.each(data, function (i, v) {
						html += '<li>' +
								'<div class="list">' +
								'<a href="/wap.php?m=Wap&c=used&a=detail&id=' + v.id + '" class="img"><img src="' + v.img + '" /></a>' +
								'<a href="/wap.php?m=Wap&c=used&a=detail&id=' + v.id + '" class="txt">' +
								'<p class="name">' + v.title + '<span>' + v.add_time + '</span></p>' +
								'<p class="size">总面积： &nbsp;&nbsp;&nbsp;&nbsp;<span>' + v.area + '&nbsp;㎡</span></p>' +
								'<p class="price">总价：<span>' + v.total_price + '万</span></p></a>' +
								'<div class="clear"></div> <p class="link"><a href="#">' + v.tags + '</a></p> </div> </li>'
					});
					$('#scroller').append(html);
					myScroll.refresh();
					myScroll.scrollTo(0, maxScrollY * 6, 100, IScroll.utils.ease.circular);

				}
			},'json');
		}
	});
	//解决点不了A标签
	/*$('#scroller a').on('tap', function (){
		$url = $(this).attr ('href');
		location.href = $url;
	});*/

</script>
<include file="Public:magfooter" />
